{% extends "professor/base.html" %}

{% block title %}教务管理系统 --查看可以提交成绩的课程{% endblock %}

{% block page_content %}
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <h2 align="center">可选课程</h2>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4 col-md-offset-4" style="background-color:lavender;">
            <!-- 在这里列出已教课程 -->
            <ul class="courses">
                {% for section in section_list %}
                    {% if section.section_id %}
                    <li class="course">
                        <div class="course-content">
                            <div class="course-body">
                                {{ section.course.course_name }}
                            </div>
                            <div class="course-footer">
                                <a href="{{ url_for('pfs.professor_list_all_students_who_take_this_course', section_id=section.section_id) }}">
                                    <span class="label label-primary">查看选这门课的学生</span>
                                </a>
                            </div>
                        </div>
                    </li>
                    {%  endif %}
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}